package com.fbs.wowo.inform.service.imp;


import com.fbs.wowo.inform.entity.Inform;
import com.fbs.wowo.inform.mapper.InformMapper;
import com.fbs.wowo.inform.service.InformService;
import com.fbs.wowo.util.common.ComUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Date;

@Service("InformService")
@Transactional
public class InformServiceImp implements InformService {

    @Resource
    private InformMapper informMapper;

    @Override
    public int insertSelective(Inform record) {
        record.setId(ComUtils.getUUID());
        record.setCreateDate(new Date());
        return informMapper.insertSelective(record);
    }
}
